package com.akkainaction.cluster.wordcount.router.spring.service.impl;

import com.akkainaction.cluster.wordcount.router.spring.service.CountingService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

@Service("countingService")
public class CountingServiceImpl implements CountingService {
 
	private static Logger logger = LoggerFactory.getLogger(CountingServiceImpl.class);
 
	@Override
	public int increment(int count) {
		logger.info("increase " + count + "by 1.");
		return count + 1;
	}
 
}